package cn.itsource.pethome.user.controller;

import cn.itsource.pethome.user.domain.UserAddress;
import cn.itsource.pethome.user.service.IUserAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/userAddress")
public class UserAddressController {

    @Autowired
    private IUserAddressService userAddressService;

    @GetMapping
    public List<UserAddress> seleceAll(){
        return userAddressService.loadAll();
    }
}
